package com.sacc.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/4/2 14:17
 */
@Data
@TableName("article")
public class Article {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("title")
    private String title;//文章标题
    @TableField("author")
    private String author;//作者
    @TableField("content")
    private String content;//文章内容
    @TableField("keywords")
    private String keywords;//关键字
    @TableField("description")
    private String description;//描述
    @TableField("is_show")
    private Integer isShow;//是否显示,1是0否
    @TableField("is_delete")
    private Integer isDelete;//是否删除,1是0否
    @TableField("is_top")
    private Integer isTop;//是否置顶,1是0否
    @TableField("is_original")
    private Integer isOriginal;//是否原创,1是0否
    @TableField("click")
    private Integer click;//点赞数
    @TableField("image_url")
    private String imageUrl;//文件图片路径
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
}
